#ifndef _SDK_MOTION_DETECT_AREA_H_
#define _SDK_MOTION_DETECT_AREA_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/shm.h>
#include <string.h>
#include <pthread.h>
#include "OSC_cJSON.h"
#include "InCommon.h"
#include "SdkMotionDetect.h"

#define DEF_MD_AREA_NUM             6
#define DEF_MD_AREA_V_NUM           32
#define DEF_MD_AREA_H_NUM           24

typedef struct
{
    int x;
    int y;
}SPointLatLng;

typedef struct
{
    int point_num;
    SPointLatLng points0[DEF_MD_AREA_NUM];
    SPointLatLng points1[DEF_MD_AREA_NUM];
}SAreaPoints;

Com_void Ext_SdkMotionDetectArea_ParsePointsZone(Com_ps8 zone);
Com_s32 Ext_SdkMotionDetectArea_GetResult(Com_void);
Com_void Ext_SdkMotionDetectArea_Init(Com_void);

#ifdef __cplusplus
}
#endif

#endif
